package com.uex.dev.manage.admin.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

import com.uex.dev.manage.admin.enums.DeviceTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备型号表
 * </p>
 *
 * @author wangchao
 * @since 2024-04-11
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_device_model")
public class DeviceModelPO extends Model<DeviceModelPO> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 设备类型
     */
    private DeviceTypeEnum deviceType;

    /**
     * 设备型号
     */
    private String deviceModel;

    @TableLogic
    private Byte deleted;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
